unit BaseFrom;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
  System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
  Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Imaging.pngimage;

type
  TfBaseForm = class(TForm)
    pnbreadcrumb: TPanel;
    imgBack: TImage;
    LabelText: TLabel;
    procedure imgBackClick(Sender: TObject);
    procedure imgBackMouseEnter(Sender: TObject);
    procedure imgBackMouseLeave(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fBaseForm: TfBaseForm;

implementation

uses
  MsgWidget;

{$R *.dfm}

procedure TfBaseForm.imgBackClick(Sender: TObject);
begin
  Close;
end;

procedure TfBaseForm.imgBackMouseEnter(Sender: TObject);
begin
  imgBack.Picture.LoadFromFile(imageFile('backd'));
end;

procedure TfBaseForm.imgBackMouseLeave(Sender: TObject);
begin
  imgBack.Picture.LoadFromFile(imageFile('back'));
end;

end.

